CCPA.cs
Code Type: C# Class
Uses Classes: CDataParameterList, CDataSet
Uses PL/SQL Procedures: PCK_CPA.AllowEventDelete, PCK_CPA.DeleteEvent, PCK_INTAKE.GetModuleSearchRS, PCK_INTAKE.GetAllModuleRS, PCK_CPA.GetCPATypeRS, PCK_CPA.GetCPARS, PCK_CPA.GetCPAPWRS, PCK_CPA.GetPWEventRS, PCK_CPA.GetPWEventAndModuleRS, PCK_CPA.GetPWEventModuleRS, PCK_CPA.GetUserCPARS, PCK_CPA.GetPatPWRS, PCK_CPA.GetPatPWEventRS, PCK_CPA.IsPatPWEventReadOnly, PCK_CPA.GetPatPWEventModuleRS, PCK_CPA.ApplyDefaultPathway, PCK_CPA.ApplyPathway, PCK_CPA.UpdatePatPWEventModule, PCK_CPA.InsertPatPWEventModules, PCK_CPA.DeletePatPWEventModules, PCK_CPA.UpdatePatPWEventModules

Lines of Code: 637

public class CCPA

	CCPA 

public CCPA()

	     constructor 

public bool AllowEventDelete(BaseMaster BaseMstr,
                                string strPatientID,
                                long lPatPWEventID)

	Check if the user can delete the event 

public bool DeleteEvent(BaseMaster BaseMstr,
                            string strPatientID,
                            long lPatPWEventID)

	Check if the user can delete the event 

public DataSet GetModuleSearchDS(BaseMaster BaseMstr,
                                     string strSearch)

	  get a dataset of instruments matching search criteria 

public DataSet GetCPATypeDS(BaseMaster BaseMstr)

	      gets clinical program area types dataset 

public DataSet GetCPADS(BaseMaster BaseMstr,
                            long lRegionID,
                            long lSiteID)

	      gets a dataset of all clinical program areas for a region site 

public DataSet GetCPAPWDS(BaseMaster BaseMstr,
                            long lCPAID)

	      Gets all pathways for a clinical program area 

public DataSet GetPWEventDS(BaseMaster BaseMstr,
                                long lPWID)

	      Gets all pathway events for a pathway 

public DataSet GetPWEventAndModuleDS(BaseMaster BaseMstr,
                                         long lPWID)

	      get all event and modules 

public DataSet GetPWEventModuleDS(BaseMaster BaseMstr,
                                      long lPWEventID)

	        Gets all modules for a pathway event 

public DataSet GetPWEventModuleDS(BaseMaster BaseMstr,
                                      long lPWID,
                                      long lPWEventID)

	      Gets all modules for a pathway event 

public DataSet GetUserCPADS(BaseMaster BaseMstr)

	      gets a dataset of users clinical program areas 

public DataSet GetPatPWDS(BaseMaster BaseMstr,
                              string strPatientID)

	      Gets all of a patient's pathway for all clinical program areas ordered by region, site and clinical program area 

public DataSet GetPatPWEventDS(BaseMaster BaseMstr,
                                   string strPatientID,
                                   long lPatPWID)

	      Gets all pathway events for a specific patient pathway 

public DataSet GetPatPWEventDS(BaseMaster BaseMstr,
                                   string strPatientID)

	      Gets all pathway events associated with a patient, ordered by clinical program area 

public bool IsPatPWEventReadOnly(BaseMaster BaseMstr,
                                     string strPatientID,
                                     long lPatPWID,
                                     long lPatPWEventID)

	Check if the event is read-only. 

public DataSet GetAllPatPWEventModuleDS(BaseMaster BaseMstr,
                                        string strPatientID)

	      Gets all pathway event modules associated with a patient 

public DataSet GetPatPWEventModuleDS(BaseMaster BaseMstr,
                                        string strPatientID)

	      Gets all pathway event modules associated with a patient 

public DataSet GetPatPWEventModuleDS(BaseMaster BaseMstr,
                                        string strPatientID,
                                        long lPatPWID,
                                        long lPatPWEventID)

	      Gets all pathway event modules associated with a patient pathway event 

public DataSet GetPatPWEventModuleDS(BaseMaster BaseMstr,
                                       string strPatientID,
                                       long lPatPWEventID)

	   get all modules for a patient pw id 

public DataSet GetPatPWEventByIDDS(BaseMaster BaseMstr,
                                       string strPatientID,
                                       long lPatPWEventID)

	 gets one pathway event by id 

public bool ApplyDefaultPathway(BaseMaster BaseMstr,
                                    string strPatientID)

	       apply default pathway to patient, return -1 if failed, otherwise patient pathway id 

public long ApplyPathway(BaseMaster BaseMstr,
                             string strPatientID,
                             string strPWTitle,
                             DateTime dtBaseline,
                             string strPWIDs)

	 combines PWs specified in strPWIDs into 1 pathway 

public bool UpdatePatPWEventModule(BaseMaster BaseMstr,
                                        string strPatientID,
                                        long lPWID,
                                        long lPatPWEvtID,
                                        long lMID,
                                        long lIntakeID)

	     Updates the Patient Pathway Event Module status after instrument is saved 

public bool InsertPWEventModules(BaseMaster BaseMstr,
                                     string strPatientID,
                                     long lPatPWEventID,
                                     string strMIDS)

	adds instruments to a pathway event 

public bool DeletePWEventModules(BaseMaster BaseMstr,
                                     string strPatientID,
                                     long lPatPWEventID,
                                     string strMIDS)

	 remove instruments from an event 

public bool InsertPatPWEventModules(BaseMaster BaseMstr,
                                        string strPatientID,
                                        long lPatPWEventID,
                                        string strMIDS,
                                        string strFORS)

	 insert instruments to the pathway event 

public bool UpdatePWEventModules(BaseMaster BaseMstr,
                                     string strPatientID,
                                     long lPatPWEventID,
                                     string strEventTitle,
                                     DateTime dtEventDate,
                                     long lAdjustFuture,
                                     string strMIDS,
                                     string strFORS)

	    insert/update pw event modules 

public bool UpdatePWEvent(BaseMaster BaseMstr,
                                     string strPatientID,
                                     long lPatPWEventID,
                                     string strEventTitle,
                                     DateTime dtEventDate,
                                     long lAdjustFuture)

	 update pathway event 

	

